#define _CRT_SECURE_NO_WARNINGS

int missingNumber(int* nums, int numsSize)
{
    int i = 0;
    int num = 0;
    for (i = 0; i <= numsSize; i++)
    {
        num ^= i;
    }
    for (int j = 0; j < numsSize; j++)
    {
        num ^= nums[j];
    }
    return num;
}
